﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:svc="clr-namespace:Schedulr.Views.Controls"
             x:Class="Schedulr.Views.OptionsEditor"
             DataContext="{Binding Path=OptionsViewModel, Source={StaticResource Locator}}">
    <Border Style="{DynamicResource BorderStyle}" Background="{DynamicResource DiagramGradientBrush}" Padding="5">
        <DockPanel LastChildFill="True">
            <GroupBox DockPanel.Dock="Top" Header="Options" Margin="0,0,0,5" Padding="5">
                <StackPanel>
                    <CheckBox Content="_Automatically retrieve metadata from picture" IsChecked="{Binding Path=AccountSettings.RetrieveMetadata}" Foreground="{DynamicResource TextBrush}" />
                    <CheckBox Content="_Delete pictures after they are uploaded to Flickr" IsChecked="{Binding Path=AccountSettings.DeleteFileAfterUpload}" Foreground="{DynamicResource TextBrush}" />
                </StackPanel>
            </GroupBox>
            <GroupBox Header="Default values for new pictures" Padding="5">
                <svc:PictureDetails DataContext="{Binding PictureDefaults}" />
            </GroupBox>
        </DockPanel>
    </Border>
</UserControl>